using System;
using MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;

namespace MinimalistFoodStreet.BackEnd.Server.Server.RequestExtend.Tables 
{
	public static class BusinesssRequestCreateExtend 
	{
		public static Businesss ToCreateEntity(this RequestCreateBusinesssDto dto)
		{
			return new Businesss 
			{

				BOpenId = dto.openId,
				BName = dto.name,
				BManagerName = dto.managerName,
			};
		}
	}
}